package com.lovejes.jesacl.domain.base;

import java.io.Serializable;


/**
 * 
   TODO
   date:2013-7-1
   author:hyyy
   @preserve all
 */
public abstract class BaseAclorg  implements Serializable {

	public static String REF = "Aclorg";
	public static String PROP_ONAME = "Oname";
	public static String PROP_OTYPE = "Otype";
	public static String PROP_RK = "Rk";
	public static String PROP_IDX = "Idx";
	public static String PROP_ID = "Id";
	public static String PROP_ONO = "Ono";
	public static String PROP_EXT1 = "Ext1";
	public static String PROP_ST = "St";
	public static String PROP_EXT2 = "Ext2";
	public static String PROP_PID = "Pid";
	public static String PROP_SNAME = "Sname";
	public static String PROP_OCODE = "Ocode";


	// constructors
	public BaseAclorg () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAclorg (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String oname;
	private java.lang.String sname;
	private java.lang.String ono;
	private java.lang.String ocode;
	private java.lang.String otype;
	private java.lang.Integer idx;
	private java.lang.String pid;
	private java.lang.String rk;
	private java.lang.String st;
	private java.lang.String ext1;
	private java.lang.String ext2;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: ONAME
	 */
	public java.lang.String getOname () {
		return oname;
	}

	/**
	 * Set the value related to the column: ONAME
	 * @param oname the ONAME value
	 */
	public void setOname (java.lang.String oname) {
		this.oname = oname;
	}



	/**
	 * Return the value associated with the column: SNAME
	 */
	public java.lang.String getSname () {
		return sname;
	}

	/**
	 * Set the value related to the column: SNAME
	 * @param sname the SNAME value
	 */
	public void setSname (java.lang.String sname) {
		this.sname = sname;
	}



	/**
	 * Return the value associated with the column: ONO
	 */
	public java.lang.String getOno () {
		return ono;
	}

	/**
	 * Set the value related to the column: ONO
	 * @param ono the ONO value
	 */
	public void setOno (java.lang.String ono) {
		this.ono = ono;
	}



	/**
	 * Return the value associated with the column: OCODE
	 */
	public java.lang.String getOcode () {
		return ocode;
	}

	/**
	 * Set the value related to the column: OCODE
	 * @param ocode the OCODE value
	 */
	public void setOcode (java.lang.String ocode) {
		this.ocode = ocode;
	}



	/**
	 * Return the value associated with the column: OTYPE
	 */
	public java.lang.String getOtype () {
		return otype;
	}

	/**
	 * Set the value related to the column: OTYPE
	 * @param otype the OTYPE value
	 */
	public void setOtype (java.lang.String otype) {
		this.otype = otype;
	}



	/**
	 * Return the value associated with the column: IDX
	 */
	public java.lang.Integer getIdx () {
		return idx;
	}

	/**
	 * Set the value related to the column: IDX
	 * @param idx the IDX value
	 */
	public void setIdx (java.lang.Integer idx) {
		this.idx = idx;
	}



	/**
	 * Return the value associated with the column: PID
	 */
	public java.lang.String getPid () {
		return pid;
	}

	/**
	 * Set the value related to the column: PID
	 * @param pid the PID value
	 */
	public void setPid (java.lang.String pid) {
		this.pid = pid;
	}



	/**
	 * Return the value associated with the column: RK
	 */
	public java.lang.String getRk () {
		return rk;
	}

	/**
	 * Set the value related to the column: RK
	 * @param rk the RK value
	 */
	public void setRk (java.lang.String rk) {
		this.rk = rk;
	}



	/**
	 * Return the value associated with the column: ST
	 */
	public java.lang.String getSt () {
		return st;
	}

	/**
	 * Set the value related to the column: ST
	 * @param st the ST value
	 */
	public void setSt (java.lang.String st) {
		this.st = st;
	}



	/**
	 * Return the value associated with the column: EXT1
	 */
	public java.lang.String getExt1 () {
		return ext1;
	}

	/**
	 * Set the value related to the column: EXT1
	 * @param ext1 the EXT1 value
	 */
	public void setExt1 (java.lang.String ext1) {
		this.ext1 = ext1;
	}



	/**
	 * Return the value associated with the column: EXT2
	 */
	public java.lang.String getExt2 () {
		return ext2;
	}

	/**
	 * Set the value related to the column: EXT2
	 * @param ext2 the EXT2 value
	 */
	public void setExt2 (java.lang.String ext2) {
		this.ext2 = ext2;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.jesacl.domain.Aclorg)) return false;
		else {
			com.lovejes.jesacl.domain.Aclorg aclorg = (com.lovejes.jesacl.domain.Aclorg) obj;
			if (null == this.getId() || null == aclorg.getId()) return false;
			else return (this.getId().equals(aclorg.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}